home *** CD-ROM | disk | FTP | other *** search
- package
- {
- import com.markdavies.events.CustomEvent;
- import marvel.centralsmashdown.game.sprites.Enemy;
- import marvel.centralsmashdown.game.sprites.GameSprite;
-
- [Embed(source="/_assets/assets.swf", symbol="Enemy")]
- public dynamic class Enemy extends marvel.centralsmashdown.game.sprites.Enemy
- {
-
-
- public function Enemy()
- {
- super();
- addFrameScript(0,frame1,44,frame45);
- }
-
- internal function frame1() : *
- {
- stop();
- }
-
- internal function frame45() : *
- {
- dispatchEvent(new CustomEvent(GameSprite.EVENT_ENEMY_DIE));
- stop();
- }
- }
- }
-